<script setup>
import Aside from "../components/aside.vue";
import navHeader from "../components/navHeader.vue";
</script>

<template>
  <div class="common-layout">
    <el-container>
      <!-- 左侧 -->
      <Aside />
      <el-container>
        <!-- 头部 -->
        <el-header>
          <navHeader />
        </el-header>
        <!-- 中间内容 -->
        <el-main>
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<style lang="less" scoped>
.common-layout {
  height: 100%;
  .el-container {
    height: 100%;
    .el-header {
      padding: 0;
    }
  }
}
</style>